package treqs;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.sql.Statement;
import java.sql.ResultSet;
import java.util.ArrayList;
import java.util.List;

public class treqsConnection {

		Connection connection;

		public treqsConnection()
		{
			connection=null;
		}

		public treqsConnection(String driverClass,String connectionURL,String user,String password)
		{
			try
			{
				Class.forName(driverClass).newInstance();
				connection=DriverManager.getConnection(connectionURL,user,password);
//				statement=connection.createStatement();
			}

			catch (InstantiationException e)
			{
				e.printStackTrace();
			}

			catch (SQLException e)
			{
				e.printStackTrace();
			}

			catch (IllegalAccessException e)
			{
				e.printStackTrace();
			}

			catch (ClassNotFoundException e)
			{
				e.printStackTrace();
			}
		}
}
